package com.example.quartz.job;

import com.example.quartz.app.service.JobService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

public class ScheduledJob implements Job {

    @Autowired
    private JobService demoService;

    @Override
    public void execute(JobExecutionContext context) {
        System.out.println("第一个定时任务" + new Date());
    }
}
